<!--
 * @Author: liuyonghu
 * @Date: 2021-12-22 17:34:24
 * @LastEditTime: 2021-12-24 23:42:22
 * @LastEditors: liuyonghu
 * @Description: 
 * @FilePath: /learn-three-js/21-1223/index.html
-->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      * {
        box-sizing: border-box;
        padding: 0;
        margin: 0;
      }
      html,
      body {
        width: 100%;
        height: 100%;
      }
      #modal {
        width: 100%;
        height: 100%;
        position: fixed;
        z-index: 100;
        left: 0;
        right: 0;
        background-image: linear-gradient(
          70deg,
          rgb(0 142 255),
          rgb(225 239 255)
        );
        display: flex;
      }

      #loading {
        margin: auto;
      }

      #loading-img {
        animation: roll 10s linear 0s infinite normal backwards;
        background-image: url('../imgs/雪花.png');
        background-position: center;
        background-repeat: no-repeat;
        background-size: contain;
        width: 100px;
        height: 100px;
      }
      #loading-title {
        font-size: 14px;
        color: white;
        text-align: center;
      }
      #start {
        display: none;
        color: #ffffff8c;
        margin: auto;
        text-align: center;
        width: auto;
        padding: 10px 20px;
        border: 5px solid #ffffff8c;
        background-color: transparent;
        font-size: 50px;
        font-weight: 900;
        border-radius: 10px;
        cursor: pointer;
      }

      #start:hover {
        border: 5px solid #ffffff;
        color: #ffffff;
      }

      @keyframes roll {
        from {
          transform: rotate(0);
        }
        to {
          transform: rotate(360deg);
        }
      }
    </style>
  </head>
  <body>
    <div id="modal">
      <div id="loading">
        <div id="loading-img"></div>
        <div id="loading-title">加载中...</div>
      </div>

      <div id="start" onclick="start()">START</div>
    </div>
    <script src="index.js"></script>
  </body>
</html>
